<template>
  <Header v-show="headerStatus"/>
  <MainNav v-show="navStatus"/>
  <div class="sub-container">
    <Loading v-show="loadingStatus"/>
    <!-- <div v-show="!loadingStatus" id="micro-container"></div> -->
  </div>
  <Footer />
</template>

<script setup>
  import Header from './components/Header.vue';
  import MainNav from './components/MainNav.vue';
  import Loading from './components/Loading.vue';
  import Footer from './components/Footer.vue';
  import { loading, header, nav } from './store';
  import { ref, watchEffect } from 'vue';
  

  const loadingStatus = ref(true)
  const headerStatus = ref(true)
  const navStatus = ref(true)

  watchEffect(() => {
    loadingStatus.value = loading.loadingStatus.value
    headerStatus.value = header.headerStatus.value
    navStatus.value = nav.navStatus.value
  })

</script>

<style>
html, body, #micro_web_main_app{
  width: 100%;
  /* height: 100%; */
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
.sub-container {
  height: 100%;
  position: relative;
}
#micro-container {
  height: 100%;
  width: 100%;
}
</style>
